<aside id="leftsidebar" class="sidebar">
        <!-- User Info -->
        <div class="user-info">
            <div class="image">
                <img src="https://www.gravatar.com/avatar/{{md5(admin()->name)}}" width="48" height="48" alt="User" />
            </div>
            <div class="info-container">
                <div class="name" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{admin()->name}}</div>
                <div class="email">{{admin()->email}}</div>
                <div class="btn-group user-helper-dropdown">
                    <i class="material-icons" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">keyboard_arrow_down</i>
                    <ul class="dropdown-menu pull-right">
                        {{-- <li><a href="javascript:void(0);"><i class="material-icons">person</i>Profile</a></li> --}}
                        {{-- <li role="separator" class="divider"></li> --}}
                        {{-- <li><a href="javascript:void(0);"><i class="material-icons">group</i>Followers</a></li> --}}
                        {{-- <li><a href="javascript:void(0);"><i class="material-icons">shopping_cart</i>Sales</a></li> --}}
                        {{-- <li><a href="javascript:void(0);"><i class="material-icons">favorite</i>Likes</a></li> --}}
                        <li role="separator" class="divider"></li>
                        <li><a href="/admin/logout"><i class="material-icons">input</i>Sign Out</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <!-- #User Info -->
        <!-- Menu -->
        <div class="menu">
            <ul class="list">
                <li class="header">主要导航</li>
                 @forelse($menusSidebar as $key => $item)
                    {{-- @if(admin()->can($item['slug'])) --}}
                        <li class="{{active_class(if_uri_pattern(explode(',', $item['hightlight_url'])))}}">
                            @empty($item['_data'])
                                <a href="{{route($item['slug'])}}">
                                    <i class="material-icons">{{$item['icon']}}</i>
                                    <span>{{$item['name']}}</span>
                                </a>
                                @else 
                                <a href="javascript:void(0);" class="menu-toggle {{active_class(if_uri_pattern(explode(',', $item['hightlight_url'])), 'toggled')}}" >
                                    <i class="material-icons">{{$item['icon']}}</i>
                                    <span>{{$item['name']}}</span>
                                </a>
                            @endempty
                            
                            @if(!empty($item['_data'])) 
                            <ul class="ml-menu" >
                                @foreach($item['_data'] as $one=>$menuOne)
                                    <li class="{{active_class(if_uri_pattern(explode(',', $menuOne['hightlight_url'])), 'active')}}">
                                        <a  href="{{route($menuOne['slug'])}}">{{$menuOne['name']}}</a>
                                    </li>
                                @endforeach
                            </ul>

                            {{-- @endif --}}
                        </li>
                    @endif
                 @empty

                 @endforelse
            </ul>
        </div>
        <!-- #Menu -->
        <!-- Footer -->
        <div class="legal">
            <div class="copyright">
                &copy; 2016 - 2017 <a href="javascript:void(0);">AdminBSB - Material Design</a>.
            </div>
            <div class="version">
                <b>Version: </b> 1.0.5
            </div>
        </div>
        <!-- #Footer -->
    </aside>